package com.xxq.semester.controller.exam;

import com.xxq.semester.entity.question.Questions;
import com.xxq.semester.service.question.IQuestionsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;

@RestController("examQuestionsControllerV2")
@RequestMapping("/exam/questions")
public class QuestionsController {
    @Autowired
    private IQuestionsService questionsService;

    @GetMapping("")
    public List<Questions> getQuestionsList() {
        return questionsService.selectAllQuestions();
    }
}
